{% extends "base.html" %}
{% load i18n  %}
{% block title %} {{sf_obj.name}} {% endblock %}
{% block content-center%}

<div class="software">
	<div class="boxtitle"> {{sf_obj.name}}</div>
	<div>{%trans "Name" %}:{{sf_obj.name}}</div>
  <div>{%trans "Label" %}:{{sf_obj.label}}</div>
  <div>{%trans "local_table" %}:{{sf_obj.table_name}}</div>
</div>


<div class="software">
<div class="boxtitle">{%trans "Actions" %}</div>
<div>
<a href="/wizard/clear/{{sf_obj.name}}/">{%trans "Clear" %}</a> 
</div>  


<div>
<a href="/wizard/import_sf_object/{{sf_obj.name}}/">{%trans "Import from SF" %}</a> 
</div>  

<div>
<a href="/synch/object/{{sf_obj.name}}/">{%trans "Synchronize Now" %}</a> 
</div>  

<div>
<a href="/synch/settings/{{sf_obj.name}}/">{%trans "Synchronize settings " %}</a> 
</div>  
</div>  


<div class="software">
<div class="boxtitle">{%trans "Views" %}</div>  
<table>
	<tr>
		<td>{%trans "Name" %}</td>
    <td>{%trans "Type" %}</td>
    <td>{%trans "URL" %}</td>
    <td>{%trans "Edit" %}</td>
    <td>{%trans "Edit Fields" %}</td>
    <td>{%trans "Preview" %}</td>
    <td>{%trans "Delete" %}</td>
	</tr>
	{%for v in views %}
  <tr>
    <td>{{v.name}}</td>
    <td>{{v.vtype}}</td>
    <td>{{v.URL}}</td>
    <td><a href="/wizard/edit_view/?view_id={{v.pk}}">{%trans "Edit" %}</a></td>
    <td><a href="/wizard/edit_view_fields/{{v.pk}}/">{%trans "Fields" %}</a></td>
    <td><a href="/wizard/preview/{{v.pk}}/">{%trans "Preview" %}</a></td>
    <td><a href="/wizard/delete/{{v.pk}}/">{%trans "Delete" %}</td>
  </tr>
  {%endfor%}
</table>
<div>
<a href="/wizard/edit_view/?sf_object_id={{sf_obj.pk}}&view_type=single">
	{%trans "Single View" %}
</a> 
<a href="/wizard/edit_view/?sf_object_id={{sf_obj.pk}}&view_type=multi">
  {%trans "Multi View" %}
</a> 
<a href="/wizard/edit_view/?sf_object_id={{sf_obj.pk}}&view_type=form">
  {%trans "Form View" %}
</a> 
</div>  
</div>  


<div class="software">
<div class="boxtitle">{%trans "Local Fields" %}</div>  
<table>
  <tr>
    <td>{%trans "Name" %}</td>
    <td>{%trans "Type" %}</td>
    <td>{%trans "Length" %}</td>
  </tr>
  {%for v in sf_obj.get_views %}
  <tr>
    <td>{{v.name}}</td>
    <td>{{v.vtype}}</td>
    <td>{{v.length}}</td>
  </tr>
  {%endfor%}
</table>
<div>
<a href="/wizard/edit_fields/{{sf_obj.name}}/">{%trans "Edit Fields" %}</a> 
</div>  
</div>  




	
{% endblock content-center%}
